<!-- /* Description for file.
 * 简历模板上传
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/resumemodels
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张海杰2011年0617
 * @lastmodified  张海杰2011年0623
 */
 -->

<?php
echo $html->css ( 'tab' );
?>
<script>
function getDelStr() {
	var delArr = $("#ResumemodelDeleteForm :checkbox:checked");
	if(delArr.length==0)
	{
		alert("请选择你要删除的项!");
		return;
	}
	var str = "";
	for(var i=0;i<delArr.length;i++) {
		var del = delArr[i].value;
		str += del;
		str += "/";
	}
	//window.alert(str);
	$("#delStr").val(str);
	//window.alert($("#delStr").val());
	$("#ResumemodelDeleteForm").submit();
}


</script>
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Systemconfigs');//一级目录
										   echo '>';echo __('Resumesetting');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('Resumemodels Import',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->


<div class="tabflex">
<!-- 上传form开始 -->
<?php echo $form->create('Resumemodel',array('action'=>'add','type'=> 'post','enctype'=>'multipart/form-data'));?>
<fieldset><legend><?php __('Resumemodelsupload');?></legend>
<table width="100%" cellspacing="0" cellpadding="0" border="0"
	style="text-align: left">
	<tr>
		<td width="100"></td>
		<td width="100"><?php __('Resumemodels word');?></td>
		<td><?php echo $form->file('resumemodelfile1',
			array('name'=>'resumemodelfile1','id'=>'resumemodelfile1','class' => 'TextBoxL','size'=>50,'enctype'=>'multipart/form-data')); ?>
		</td>
	</tr>
	<tr>
		<td width="100"></td>
		<td width="100"><?php __('Resumemodels remark');?>&nbsp;&nbsp;<font color=red>*</font></td>
		<td><?php echo $form->text('resumemodelname1',
			array('class' => 'TextBoxL txtOut','name'=>'resumemodelname1','id'=>'resumemodelname1')); ?>
			</td>
	</tr>
	<tr>
		<td width="100"></td>
		<td width="100"><?php __('Resumemodels html');?></td>
		<td><?php echo $form->file('resumemodelfile2',
			array('name'=>'resumemodelfile2','id'=>'resumemodelfile2','class' => 'TextBoxL','size'=>50,'enctype'=>'multipart/form-data')); ?>
		</td>
	</tr>
	<tr>
		<td width="100"></td>
		<td width="100"><?php __('Resumemodels remark');?>&nbsp;&nbsp;<font color=red>*</font></td>
		<td><?php echo $form->text('resumemodelname2',
			array('class' => 'TextBoxL txtOut','name'=>'resumemodelname2','id'=>'resumemodelname2')); ?>
		</td>

	</tr>

	<tr>
		<td width="100"></td>
		<td width="100"></td>
		<td>
		<table width="40%" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td width="40px">
				<?php echo $form->button('上传',array('type'=>'submit','class'=>'addsubmit'));?> 			
				<!-- __('Add', true)增加--></td>
				<td width="40px"
				><?php echo $form->button('重置',array('type'=>'reset','class'=>'resetsubmit'));?>
				<!-- __('reset', true)取消--></td>
				<td width="40px">
				<a><?php echo $html->image('delete.gif', array('alt' =>  __('Delete', true),'border'=>'0','onclick'=>'getDelStr()'));?></a>
				</td>
				<!--  __('delete', true) 删除、提示 -->
				<td></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</fieldset>
<?php echo $form->end();?>
<!-- 上传form结束 -->
<!--删除form开始 -->
<?php echo $form->create('Resumemodel',array('action'=>'delete','type'=> 'post'));?>
<?php echo $form->hidden('delStr',array('name'=>'resumemodelsid','id'=>'delStr'));?>
<div id="nav1" style="width: 97%">
<table width="100%" cellpadding="0" cellspacing="0" class="tab1">
	<tr>
		<th width="70px"><?php echo $form->checkbox('',array('id'=>'checkedAll'));?></th>
		<th><?php echo __('Resumemodels remark name');?></th>
		<th><?php echo __('Resumemodels updatetime');?></th>
		<th width="80px;"><?php echo __('Filetype') ?></th>
	</tr>
	<!-- Here's where we loop through our $Notes array, printing out post info --> 
	<?php 
	foreach ($resumemodels as $datas): 
	
	?>
		<tr class=normal onmouseover='this.className= "over " '
		onmouseup='this.className= "over " '
		onmouseout='this.className= "normal " '>
		<td><!-- 批量删除选择 -->				
			<?php echo $form->checkbox($datas['Resumemodel']['id'], array('value' => $datas['Resumemodel']['id'],'name'=>'checkbox_name'));?>
			</td>
			<td title="<?php echo $datas['Resumemodel']['memo']; ?>">
			<?php 
						$dir="files-resumemodelfiles";
						$pass = mb_substr($datas['Resumemodel']['uploadAddress'],23,100,"utf-8");
						//echo $pass;
						echo $html->link($datas['Resumemodel']['memo'],
							'/resumemodels/down/'.$dir.'/'.$pass);
			?>	
			</td>
		<td title="<?php echo $datas['Resumemodel']['created']; ?>"><?php echo $datas['Resumemodel']['created']; ?></td>
		<td title="<?php echo $datas['Resumemodel']['htmlOrWord']; ?>"><?php echo $datas['Resumemodel']['htmlOrWord']; ?></td>

	</tr> 
	<?php endforeach; ?>  
	</table>
</div>
<?php echo $form->end();?>
<!--删除form结束 -->
</div>


